package com.hyperchain.controller;

import com.hyperchain.entity.DbAccount;
import com.hyperchain.mapper.AccountMapper;
import com.hyperchain.notification.NotificationType;
import com.hyperchain.service.NotificationService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class StrategyController {

    @Resource
    private NotificationService notificationService;

    @GetMapping("/strategy")
    public String getMethod(NotificationType notificationType){
        return notificationService.getMethod(notificationType);
    }
}
